home *** CD-ROM | disk | FTP | other *** search
- // VirtuaLight VIB-Header
-
- /*
- * Useful functions for shaders
- */
-
- static Agate = pow(((sin(6.2832*(1.1*z+2.6*noise(Po,(2.8,0.5,4))))+1.0)/2.0),0.77)
-
- static BasicWood = sawtooth(sqrt(x * x + y * y))
-
- static Checker = |fmod(floor(x) + floor(y) + floor(z), 2)|
-
- static Granite = noise(6*Po, 4)
-
- static Leopard = pow(((sin(x) + sin(y) + sin(z)) / 3.0), 2.0)
-
- static Marble = sawtooth(x + 3 * noise(Po, 5))
-
- static Onion = fmod(|Po|, 1)
-
- static Radial = (1.0 + atan2(x, z) / PI) / 2.0
-